package com.easyaop.test.core.entity2;

import com.easyaop.test.core.annotation.Log;
import com.easyaop.test.core.entity.Bean;

/**
 * @author lipan
 * @since 2025-04-17
 */
public class Bean3 extends Bean2 {
    @Override
    @Log
    public void setName(String name) {
        /*proName = "proName1";
        System.out.println(proName);

        proStaticName = "proStaticName2";
        System.out.println(proStaticName);

        System.out.println(constantName);
        num = Integer.valueOf(1);
        System.out.println(num);*/
        /*pr_m1();
        pro_m2();
        def_m3();
        _pro_m2();
        _def_m3();

        super._pro_m2();
        super._def_m3();
        __pro_m2();
        super.__pro_m2();*//*
        _pro_sm2();
        _def_sm3();
        __pro_sm2();*/
        /*super.setName(name);
        super.setName(name);
        super.setName(name);
        System.out.println(super.getName());
        this.pr_m1();
        pro_m2();
        __pro_m2();
        __pro_sm2();
        Bean.__pro_sm2();*/
        super._proName = "lp";
        super.__proName = "lp1";
    }

    private void pr_m1() {
        System.out.println("invoke private method");
    }

    protected void pro_m2() {
        System.out.println("invoke protected method");
    }

    void def_m3() {
        System.out.println("invoke default method");
    }

    private static void pr_sm1() {
        System.out.println("invoke static private method");
    }

    protected static void pro_sm2() {
        System.out.println("invoke static protected method");
    }

    static void def_sm3() {
        System.out.println("invoke static default method");
    }
}
